package writeor.aidraw.dao;

import org.apache.ibatis.annotations.Param;
import writeor.aidraw.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface UserDao {
    int deleteByPrimaryKey(Integer user_id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer user_id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List getUserlist();

    int insertUser(User user);

    User findUser(@Param("username") String username,@Param("password") String password);


    List<User> getUserListByPage();

    /**
     * 通过账号和密码查询用户
     */



    public int insertUser108(User user);

    //public User get_userlist();

    public List<User> selectUserListWithPage();//分页

    public int deleteUser_108(Integer user_id);

    //更新商品分类信息
    public int updateUser108(User user);

    //int insert(User record);

    List<User> FindUsersByName(String users_name);
}